package demo1;

public class Text {
    public static void drawMap(IShape iShape){
        iShape.draw();
    }
    public static void main(String[] args) {
        //IShape iShape=new IShape();接口是不能实例化的
        IShape iShape1=new Cycle();
        IShape iShape2=new Rect();
        drawMap(iShape1);
        drawMap(iShape2);
    }
}
